package model.resource;

import java.util.HashMap;
import java.util.Map;

import model.entity.NPC;

/**
 * This is a relationship class used to get the Battle loader for
 * an NPC.
 * @author Vincent
 *
 */
public class NPCtoFight{

	private static Map<NPC, NPCBattleLoader> npcToFight;
	
	public NPCtoFight(){
		npcToFight = new HashMap<NPC, NPCBattleLoader>();
	}
	
	public static void addPair(NPC npc, NPCBattleLoader npcBL){
		npcToFight.put(npc, npcBL);
	}
	
	public static void removePair(NPC npc){
		npcToFight.remove(npc);
	}
	
	public static NPCBattleLoader getBattleLoader(NPC npc){
		return npcToFight.get(npc);
	}
}
	
	